import React, { Component, useEffect ,useState} from "react";

export default function HoosUse() {
  const str = useString();
  useData(() => {
    console.log("hello");
  }, []);
  return (
    <>
      <div>hookUse, {str}</div>
    </>
  );
}
function useData(cb, deps) {
  useEffect(cb, deps);
}
function useString() {
  const [state, setState] = useState("luyi");
  return state;
}
